Qmaster command line job submission?

I've had the darndest time finding any information about submitting Qmaster jobs via the command line.


All of the docs repeatedly reference this single example:


/Applications/Apple\ Qmaster.app/Contents/MacOS/Apple\ Qmaster -clustername elvis -command "Shake" -options
"<command executable="/Applications/Shake/shake.app/Contents/MacOS/shake"
script="/Volumes/Data/scripts/applestyle.shk" start="1" end="1000"
stepsOf="1" minCount="10" otherOptions="" previewNode="" previewWidth="0"
shutterOn="yes" motion="yes" proxyFlags="0" proxyScale="1.000000"
proxyRatio="1000.000000" shutter="1.000000">
</command>"


Shake doesn't even exist as a commerical software at this point :\ so it's not a very useful example anymore.


What I'm trying to do is use the "Shell" command type. I thought I had it working by using the -script argument, but this seems to run the script as a local process when I submit the job. The job is queued up, and runs, but it just sits there doing nothing, I don't think its calling the script I passed along.


Also I tried this, but it doesn't work:


Apple Qmaster -clustername test -batchname cmdlinesubmit -command "Shell" -wd /Users/username/bin/ -options "<command command='touch /Users/username/bin/batchjob.txt'></command>"


The job appears in the queue and starts running, but the batchjob.txt never gets created.


I know how to do this via the Qmaster GUI, but I'm trying to use this in a batch processing setup for applications and scripts that do not have a dedicated Qmaster command type (ie: "Shake" "Generic Render" etc.)


Alternatively, is there a way for me to create my own "Job Types" in a plist somewhere, so that I can use the -options xml format?


This seems to be a dark art, as I can find almost nothing on the internet about it.


I'm sure the cluster is setup and working, as I can submit jobs successfully via the Qmaster GUI, and they run fine. Its just the command line submission I'm having trouble with.


Any help would be most appreciated!!

-Andy

Qmaster-OTHER, Mac OS X (10.7.5)

Posted on Oct 5, 2012 2:42 PM

Reply
1 reply

Oct 5, 2012 2:55 PM in response to divination23

Ah hah!

My search-fu failed to uncover this, but the suggestion box on the right side pointed me to the solution:


https://discussions.apple.com/thread/1295989?answerId=6146320022#6146320022


This appears to work:


Apple Qmaster -clustername test -batchname cmdlinesubmit -command "Shell" -wd /Users/username/bin/ -options "<command>/usr/bin/touch /Users/username/bin/pleasework.txt</command>"



yay!!!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Qmaster command line job submission?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.